﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Studio7i.CapaDominio.Sala>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <table>
        <tr>
            <th></th>
            <th>
                CoSala
            </th>
            <th>
                NoSala
            </th>
            <th>
                QtCapacidad
            </th>
            <th>
                TxCaracteristicas
            </th>
            <th>
                TxComentario
            </th>
            <th>
                SsArmado
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Editar", "Edit", new {Codigo = item.CoSala }) %> |
                <%: Html.ActionLink("Detalles", "Details", new { Codigo = item.CoSala })%> |
                <%: Html.ActionLink("Eliminar", "Delete", new { Codigo = item.CoSala })%>
            </td>
            <td>
                <%: item.CoSala %>
            </td>
            <td>
                <%: item.NoSala %>
            </td>
            <td>
                <%: item.QtCapacidad %>
            </td>
            <td>
                <%: item.TxCaracteristicas %>
            </td>
            <td>
                <%: item.TxComentario %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.SsArmado) %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Crear", "Inscripcion") %>
    </p>

</asp:Content>

